<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>aws-crt-cpp: Aws::Crt::Io::TlsContextOptions Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">aws-crt-cpp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceAws.html">Aws</a></li><li class="navelem"><a class="el" href="namespaceAws_1_1Crt.html">Crt</a></li><li class="navelem"><a class="el" href="namespaceAws_1_1Crt_1_1Io.html">Io</a></li><li class="navelem"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Aws::Crt::Io::TlsContextOptions Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="TlsOptions_8h_source.html">TlsOptions.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0a2baf09f626595e64bb1bce8ae0ac03"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a0a2baf09f626595e64bb1bce8ae0ac03">TlsContextOptions</a> () noexcept</td></tr>
<tr class="separator:a0a2baf09f626595e64bb1bce8ae0ac03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3033d9406f80f5fd93372cd7c52007c5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a3033d9406f80f5fd93372cd7c52007c5">~TlsContextOptions</a> ()</td></tr>
<tr class="separator:a3033d9406f80f5fd93372cd7c52007c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a330f19bf744a5f119c03771135ae84e7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a330f19bf744a5f119c03771135ae84e7">TlsContextOptions</a> (const <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;) noexcept=delete</td></tr>
<tr class="separator:a330f19bf744a5f119c03771135ae84e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60e81d2aca949567aa3031956e2a6da6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a60e81d2aca949567aa3031956e2a6da6">operator=</a> (const <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;) noexcept=delete</td></tr>
<tr class="separator:a60e81d2aca949567aa3031956e2a6da6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b1253e45630c309ec05373414fd91cc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a9b1253e45630c309ec05373414fd91cc">TlsContextOptions</a> (<a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;&amp;) noexcept</td></tr>
<tr class="separator:a9b1253e45630c309ec05373414fd91cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78e5c4de67cf076ab975e54f24b185db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a78e5c4de67cf076ab975e54f24b185db">operator=</a> (<a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;&amp;) noexcept</td></tr>
<tr class="separator:a78e5c4de67cf076ab975e54f24b185db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a941099713f68de668e8f366af9946c71"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a941099713f68de668e8f366af9946c71">operator bool</a> () const noexcept</td></tr>
<tr class="separator:a941099713f68de668e8f366af9946c71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9cd96f33ba5c3f1333d5ece85b8062d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#ad9cd96f33ba5c3f1333d5ece85b8062d">LastError</a> () const noexcept</td></tr>
<tr class="separator:ad9cd96f33ba5c3f1333d5ece85b8062d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2063851f18dbc35dea7e7eb5aaeff04d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a2063851f18dbc35dea7e7eb5aaeff04d">SetAlpnList</a> (const char *alpnList) noexcept</td></tr>
<tr class="separator:a2063851f18dbc35dea7e7eb5aaeff04d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94e652e626b9b6f5b6fcde274244fcb7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a94e652e626b9b6f5b6fcde274244fcb7">SetVerifyPeer</a> (bool verifyPeer) noexcept</td></tr>
<tr class="separator:a94e652e626b9b6f5b6fcde274244fcb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1861581c5a15ee7b9151044be94c3a9d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a1861581c5a15ee7b9151044be94c3a9d">OverrideDefaultTrustStore</a> (const char *caPath, const char *caFile) noexcept</td></tr>
<tr class="separator:a1861581c5a15ee7b9151044be94c3a9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bc5997adf0d28ebe70f6c84e1aaa972"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a8bc5997adf0d28ebe70f6c84e1aaa972">OverrideDefaultTrustStore</a> (const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;ca) noexcept</td></tr>
<tr class="separator:a8bc5997adf0d28ebe70f6c84e1aaa972"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a98bfeed1d9c8f66cda9db823f5aeae7e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a98bfeed1d9c8f66cda9db823f5aeae7e">InitDefaultClient</a> (<a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator=<a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a>) noexcept</td></tr>
<tr class="separator:a98bfeed1d9c8f66cda9db823f5aeae7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c8b08e4a120d1f4b6651bbdb60a5d27"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a5c8b08e4a120d1f4b6651bbdb60a5d27">InitClientWithMtls</a> (const char *cert_path, const char *pkey_path, <a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator=<a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a>) noexcept</td></tr>
<tr class="separator:a5c8b08e4a120d1f4b6651bbdb60a5d27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21127a39cdf5ed6e6ffa675db02626c0"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a21127a39cdf5ed6e6ffa675db02626c0">InitClientWithMtls</a> (const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;cert, const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;pkey, <a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *allocator=<a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a>) noexcept</td></tr>
<tr class="separator:a21127a39cdf5ed6e6ffa675db02626c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7e9b86c045f26c61b3f8b6ff44cc0f5"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#ad7e9b86c045f26c61b3f8b6ff44cc0f5">IsAlpnSupported</a> () noexcept</td></tr>
<tr class="separator:ad7e9b86c045f26c61b3f8b6ff44cc0f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a1d7d91d71900833f4fa7d85bc6aacbbc"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html#a1d7d91d71900833f4fa7d85bc6aacbbc">TlsContext</a></td></tr>
<tr class="separator:a1d7d91d71900833f4fa7d85bc6aacbbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0a2baf09f626595e64bb1bce8ae0ac03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a2baf09f626595e64bb1bce8ae0ac03">&#9670;&nbsp;</a></span>TlsContextOptions() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Crt::Io::TlsContextOptions::TlsContextOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3033d9406f80f5fd93372cd7c52007c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3033d9406f80f5fd93372cd7c52007c5">&#9670;&nbsp;</a></span>~TlsContextOptions()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Crt::Io::TlsContextOptions::~TlsContextOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a330f19bf744a5f119c03771135ae84e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a330f19bf744a5f119c03771135ae84e7">&#9670;&nbsp;</a></span>TlsContextOptions() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Crt::Io::TlsContextOptions::TlsContextOptions </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a9b1253e45630c309ec05373414fd91cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b1253e45630c309ec05373414fd91cc">&#9670;&nbsp;</a></span>TlsContextOptions() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Crt::Io::TlsContextOptions::TlsContextOptions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a21127a39cdf5ed6e6ffa675db02626c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21127a39cdf5ed6e6ffa675db02626c0">&#9670;&nbsp;</a></span>InitClientWithMtls() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> Aws::Crt::Io::TlsContextOptions::InitClientWithMtls </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;&#160;</td>
          <td class="paramname"><em>cert</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;&#160;</td>
          <td class="paramname"><em>pkey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *&#160;</td>
          <td class="paramname"><em>allocator</em> = <code><a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Initializes <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> with secure by default options, with client certificate and private key. These are in memory buffers. These buffers must be in the PEM format. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cert</td><td>Certificate contents in memory. </td></tr>
    <tr><td class="paramname">pkey</td><td>Private key contents in memory. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5c8b08e4a120d1f4b6651bbdb60a5d27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c8b08e4a120d1f4b6651bbdb60a5d27">&#9670;&nbsp;</a></span>InitClientWithMtls() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> Aws::Crt::Io::TlsContextOptions::InitClientWithMtls </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>cert_path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pkey_path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *&#160;</td>
          <td class="paramname"><em>allocator</em> = <code><a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Initializes <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> with secure by default options, with client certificate and private key. These are paths to a file on disk. These files must be in the PEM format. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cert_path</td><td>Path to certificate file. </td></tr>
    <tr><td class="paramname">pkey_path</td><td>Path to private key file. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a98bfeed1d9c8f66cda9db823f5aeae7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98bfeed1d9c8f66cda9db823f5aeae7e">&#9670;&nbsp;</a></span>InitDefaultClient()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> Aws::Crt::Io::TlsContextOptions::InitDefaultClient </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceAws_1_1Crt.html#a3c9efb213e2de565038afcfd4f8afcda">Allocator</a> *&#160;</td>
          <td class="paramname"><em>allocator</em> = <code><a class="el" href="namespaceAws_1_1Crt.html#a7178ef65f261a8db52a624458331bbb2">g_allocator</a></code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Initializes <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> with secure by default options, with no client certificates. </p>

</div>
</div>
<a id="ad7e9b86c045f26c61b3f8b6ff44cc0f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7e9b86c045f26c61b3f8b6ff44cc0f5">&#9670;&nbsp;</a></span>IsAlpnSupported()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Aws::Crt::Io::TlsContextOptions::IsAlpnSupported </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true if alpn is supported by the underlying security provider, false otherwise. </dd></dl>

</div>
</div>
<a id="ad9cd96f33ba5c3f1333d5ece85b8062d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9cd96f33ba5c3f1333d5ece85b8062d">&#9670;&nbsp;</a></span>LastError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Aws::Crt::Io::TlsContextOptions::LastError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>the value of the last aws error encountered by operations on this instance. </dd></dl>

</div>
</div>
<a id="a941099713f68de668e8f366af9946c71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a941099713f68de668e8f366af9946c71">&#9670;&nbsp;</a></span>operator bool()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Aws::Crt::Io::TlsContextOptions::operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true if the instance is in a valid state, false otherwise. </dd></dl>

</div>
</div>
<a id="a60e81d2aca949567aa3031956e2a6da6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60e81d2aca949567aa3031956e2a6da6">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a>&amp; Aws::Crt::Io::TlsContextOptions::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a78e5c4de67cf076ab975e54f24b185db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78e5c4de67cf076ab975e54f24b185db">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp; Aws::Crt::Io::TlsContextOptions::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContextOptions.html">TlsContextOptions</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a8bc5997adf0d28ebe70f6c84e1aaa972"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bc5997adf0d28ebe70f6c84e1aaa972">&#9670;&nbsp;</a></span>OverrideDefaultTrustStore() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Aws::Crt::Io::TlsContextOptions::OverrideDefaultTrustStore </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceAws_1_1Crt.html#a14ac076b0baa520bccb2b7236e4e78b7">ByteCursor</a> &amp;&#160;</td>
          <td class="paramname"><em>ca</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Overrides the default system trust store. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ca</td><td>PEM armored chain of trusted CA certificates. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1861581c5a15ee7b9151044be94c3a9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1861581c5a15ee7b9151044be94c3a9d">&#9670;&nbsp;</a></span>OverrideDefaultTrustStore() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Aws::Crt::Io::TlsContextOptions::OverrideDefaultTrustStore </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>caPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>caFile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Overrides the default system trust store. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">caPath</td><td>Path to directory containing trusted certificates, which will overrides the default trust store. Only useful on Unix style systems where all anchors are stored in a directory (like /etc/ssl/certs). This string must remain in memory for the lifetime of this object. </td></tr>
    <tr><td class="paramname">caFile</td><td>Path to file containing PEM armored chain of trusted CA certificates. This string must remain in memory for the lifetime of this object. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2063851f18dbc35dea7e7eb5aaeff04d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2063851f18dbc35dea7e7eb5aaeff04d">&#9670;&nbsp;</a></span>SetAlpnList()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Aws::Crt::Io::TlsContextOptions::SetAlpnList </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>alpnList</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the list of alpn protocols. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">alpnList</td><td>List of protocol names, delimited by ';'. This string must remain in memory for the lifetime of this object. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a94e652e626b9b6f5b6fcde274244fcb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94e652e626b9b6f5b6fcde274244fcb7">&#9670;&nbsp;</a></span>SetVerifyPeer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Aws::Crt::Io::TlsContextOptions::SetVerifyPeer </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>verifyPeer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>In client mode, this turns off x.509 validation. Don't do this unless you're testing. It's much better, to just override the default trust store and pass the self-signed certificate as the caFile argument.</p>
<p>In server mode, this defaults to false. If you want to support mutual TLS from the server, you'll want to set this to true. </p>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="a1d7d91d71900833f4fa7d85bc6aacbbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d7d91d71900833f4fa7d85bc6aacbbc">&#9670;&nbsp;</a></span>TlsContext</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classAws_1_1Crt_1_1Io_1_1TlsContext.html">TlsContext</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/include/aws/crt/io/<a class="el" href="TlsOptions_8h_source.html">TlsOptions.h</a></li>
<li>/home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/source/io/<a class="el" href="TlsOptions_8cpp.html">TlsOptions.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
